<?php

return [
    // 加解密配置，通过zw_encrypt、zw_decrypt通过，主要用在接口签名
    'license' => [
        'cipher' => 'AES-256-CBC',
        'key' => env('APP_KEY'),
        'iv' => env('APP_IV')
    ],
    // cdn 缓存，通过 CdnUrlConvertable 做自动cdn域名转换
    'cdn' => [
        'url' => env('CDN_URL', ''),
        'image_url' => env('CDN_IMAGE_URL', ''),
        'zip_url' => env('CDN_ZIP_URL', ''),
        'encrypt' => env('CDN_ENCRYPT', false),     // 视频地址是否加密
        'encrypt_key' => env('CDN_ENCRYPT_KEY', ''),
        'encrypt_iv' => env('CDN_ENCRYPT_IV', ''),
        'auth_key' => env('CDN_AUTH_KEY', ''),
        'auth_second_key' => env('CDN_AUTH_SECOND_KEY', ''),
    ],
    'response' => [
        'except_routes' => [
            'horizon/*'
        ]
    ],
    'java' => [
        'url' => env('JAVA_URL')
    ],
];
